function qu(oldarr){
    var newarr = [];
    for(var i=0;i<oldarr.length;i++){
        var falg = true;
        for(var k=0;k<newarr.length;k++){
            if(oldarr[i].id == newarr[k].id){
                newarr[k].count++;
                falg = false;
            }
        }
        if(falg){
            newarr.push(oldarr[i]);
        }
    }
    return  newarr;
    // console.log(newarr);
}
export default  qu;